<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>CAD-Tool: planar_graph_generator.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CAD-Tool
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">planar_graph_generator.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="structs_8h_source.html">structs.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_full__plane_8h_source.html">Full_plane.h</a>&quot;</code><br />
<code>#include &lt;vector&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for planar_graph_generator.h:</div>
<div class="dyncontent">
<div class="center"><img src="planar__graph__generator_8h__incl.png" border="0" usemap="#planar__graph__generator_8h" alt=""/></div>
<map name="planar__graph__generator_8h" id="planar__graph__generator_8h">
<area shape="rect" id="node2" href="structs_8h.html" title="structs.h" alt="" coords="5,155,79,181"/>
<area shape="rect" id="node3" href="_full__plane_8h.html" title="Full_plane.h" alt="" coords="61,80,153,107"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="planar__graph__generator_8h__dep__incl.png" border="0" usemap="#planar__graph__generator_8hdep" alt=""/></div>
<map name="planar__graph__generator_8hdep" id="planar__graph__generator_8hdep">
<area shape="rect" id="node2" href="body__loop_8cpp.html" title="/home/manish/Desktop\l/Manish_CAD_Tool/src\l/body_loop.cpp" alt="" coords="5,80,164,136"/>
<area shape="rect" id="node3" href="faceloop__generator_8cpp.html" title="/home/manish/Desktop\l/Manish_CAD_Tool/src\l/faceloop_generator.cpp" alt="" coords="188,80,349,136"/>
<area shape="rect" id="node4" href="_object__3d_8cpp.html" title="/home/manish/Desktop\l/Manish_CAD_Tool/src\l/Object_3d.cpp" alt="" coords="373,80,532,136"/>
<area shape="rect" id="node5" href="planar__graph__generator_8cpp.html" title="/home/manish/Desktop\l/Manish_CAD_Tool/src\l/planar_graph_generator.cpp" alt="" coords="557,80,743,136"/>
</map>
</div>
</div>
<p><a href="planar__graph__generator_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a2cdfdb8be2237b1c7359b630e9603cfd"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="class_full__plane.html">Full_plane</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="planar__graph__generator_8h.html#a2cdfdb8be2237b1c7359b630e9603cfd">planar_graph_generator</a> (std::vector&lt; <a class="el" href="classvertex__3d.html">vertex_3d</a> &gt; v3d_list, std::vector&lt; <a class="el" href="classedge__3d.html">edge_3d</a> &gt; &amp;e3d_list)</td></tr>
<tr class="memdesc:a2cdfdb8be2237b1c7359b630e9603cfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">function that generates and retunrs planes  <a href="#a2cdfdb8be2237b1c7359b630e9603cfd">More...</a><br /></td></tr>
<tr class="separator:a2cdfdb8be2237b1c7359b630e9603cfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d89f969b47445ac1b5b0cf170401cf1"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="classplane.html">plane</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="planar__graph__generator_8h.html#a8d89f969b47445ac1b5b0cf170401cf1">construct_planes</a> (std::vector&lt; <a class="el" href="classvertex__3d.html">vertex_3d</a> &gt; v3d_list, std::vector&lt; <a class="el" href="classedge__3d.html">edge_3d</a> &gt; e3d_list, std::vector&lt; std::vector&lt; int &gt; &gt; adj_list)</td></tr>
<tr class="memdesc:a8d89f969b47445ac1b5b0cf170401cf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">function that constructs plane equations  <a href="#a8d89f969b47445ac1b5b0cf170401cf1">More...</a><br /></td></tr>
<tr class="separator:a8d89f969b47445ac1b5b0cf170401cf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a077660a929dda9adf2f8a2daa6a563c1"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::vector&lt; int &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="planar__graph__generator_8h.html#a077660a929dda9adf2f8a2daa6a563c1">get_adj_list</a> (std::vector&lt; <a class="el" href="classedge__3d.html">edge_3d</a> &gt; e3d_list, int no_of_vertices)</td></tr>
<tr class="memdesc:a077660a929dda9adf2f8a2daa6a563c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">function that returns adjacency edges list of the <a class="el" href="classvertex__3d.html" title="class for a vertex_3d ">vertex_3d</a> list  <a href="#a077660a929dda9adf2f8a2daa6a563c1">More...</a><br /></td></tr>
<tr class="separator:a077660a929dda9adf2f8a2daa6a563c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a488a27459d11af0b73b76ebe78a8a1c4"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="classplane.html">plane</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="planar__graph__generator_8h.html#a488a27459d11af0b73b76ebe78a8a1c4">eliminate_duplicate_planes</a> (std::vector&lt; <a class="el" href="classplane.html">plane</a> &gt; planes)</td></tr>
<tr class="memdesc:a488a27459d11af0b73b76ebe78a8a1c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">function that eliminates duplicate formed planes  <a href="#a488a27459d11af0b73b76ebe78a8a1c4">More...</a><br /></td></tr>
<tr class="separator:a488a27459d11af0b73b76ebe78a8a1c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd37db477f3dd31a46790f5a7ded851c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="planar__graph__generator_8h.html#acd37db477f3dd31a46790f5a7ded851c">check_legality</a> (<a class="el" href="class_full__plane.html">Full_plane</a> &amp;f, std::vector&lt; std::vector&lt; int &gt; &gt; adj_list)</td></tr>
<tr class="memdesc:acd37db477f3dd31a46790f5a7ded851c"><td class="mdescLeft">&#160;</td><td class="mdescRight">function returns true if planar graph is legal  <a href="#acd37db477f3dd31a46790f5a7ded851c">More...</a><br /></td></tr>
<tr class="separator:acd37db477f3dd31a46790f5a7ded851c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47eedebb44f45567710e54702a5f28b6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="planar__graph__generator_8h.html#a47eedebb44f45567710e54702a5f28b6">remove_dangling</a> (<a class="el" href="class_full__plane.html">Full_plane</a> &amp;f, std::vector&lt; std::vector&lt; int &gt; &gt; adj_list)</td></tr>
<tr class="memdesc:a47eedebb44f45567710e54702a5f28b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">function that removes dangling and isolated edges on the planar graph using dfs  <a href="#a47eedebb44f45567710e54702a5f28b6">More...</a><br /></td></tr>
<tr class="separator:a47eedebb44f45567710e54702a5f28b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4d8aa255999d941dcc6b5b61ca9d0fd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="planar__graph__generator_8h.html#ad4d8aa255999d941dcc6b5b61ca9d0fd">remove_single_plane_edges</a> (std::vector&lt; <a class="el" href="class_full__plane.html">Full_plane</a> &gt; &amp;f_list, std::vector&lt; <a class="el" href="classedge__3d.html">edge_3d</a> &gt; &amp;e3d_list)</td></tr>
<tr class="memdesc:ad4d8aa255999d941dcc6b5b61ca9d0fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">function that removes those edges which belongs only to one planner graph  <a href="#ad4d8aa255999d941dcc6b5b61ca9d0fd">More...</a><br /></td></tr>
<tr class="separator:ad4d8aa255999d941dcc6b5b61ca9d0fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="acd37db477f3dd31a46790f5a7ded851c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool check_legality </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_full__plane.html">Full_plane</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; int &gt; &gt;&#160;</td>
          <td class="paramname"><em>adj_list</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>function returns true if planar graph is legal </p>

<p>Definition at line <a class="el" href="planar__graph__generator_8cpp_source.html#l00080">80</a> of file <a class="el" href="planar__graph__generator_8cpp_source.html">planar_graph_generator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8d89f969b47445ac1b5b0cf170401cf1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; <a class="el" href="classplane.html">plane</a> &gt; construct_planes </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classvertex__3d.html">vertex_3d</a> &gt;&#160;</td>
          <td class="paramname"><em>v3d_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classedge__3d.html">edge_3d</a> &gt;&#160;</td>
          <td class="paramname"><em>e3d_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; int &gt; &gt;&#160;</td>
          <td class="paramname"><em>adj_list</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>function that constructs plane equations </p>

<p>Definition at line <a class="el" href="planar__graph__generator_8cpp_source.html#l00027">27</a> of file <a class="el" href="planar__graph__generator_8cpp_source.html">planar_graph_generator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a488a27459d11af0b73b76ebe78a8a1c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; <a class="el" href="classplane.html">plane</a> &gt; eliminate_duplicate_planes </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classplane.html">plane</a> &gt;&#160;</td>
          <td class="paramname"><em>planes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>function that eliminates duplicate formed planes </p>

<p>Definition at line <a class="el" href="planar__graph__generator_8cpp_source.html#l00057">57</a> of file <a class="el" href="planar__graph__generator_8cpp_source.html">planar_graph_generator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a077660a929dda9adf2f8a2daa6a563c1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; std::vector&lt;int&gt; &gt; get_adj_list </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classedge__3d.html">edge_3d</a> &gt;&#160;</td>
          <td class="paramname"><em>e3d_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>no_of_vertices</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>function that returns adjacency edges list of the <a class="el" href="classvertex__3d.html" title="class for a vertex_3d ">vertex_3d</a> list </p>

<p>Definition at line <a class="el" href="planar__graph__generator_8cpp_source.html#l00049">49</a> of file <a class="el" href="planar__graph__generator_8cpp_source.html">planar_graph_generator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2cdfdb8be2237b1c7359b630e9603cfd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; <a class="el" href="class_full__plane.html">Full_plane</a> &gt; planar_graph_generator </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classvertex__3d.html">vertex_3d</a> &gt;&#160;</td>
          <td class="paramname"><em>v3d_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classedge__3d.html">edge_3d</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>e3d_list</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>function that generates and retunrs planes </p>

<p>Definition at line <a class="el" href="planar__graph__generator_8cpp_source.html#l00008">8</a> of file <a class="el" href="planar__graph__generator_8cpp_source.html">planar_graph_generator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a47eedebb44f45567710e54702a5f28b6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void remove_dangling </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_full__plane.html">Full_plane</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; int &gt; &gt;&#160;</td>
          <td class="paramname"><em>adj_list</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>function that removes dangling and isolated edges on the planar graph using dfs </p>

<p>Definition at line <a class="el" href="planar__graph__generator_8cpp_source.html#l00090">90</a> of file <a class="el" href="planar__graph__generator_8cpp_source.html">planar_graph_generator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad4d8aa255999d941dcc6b5b61ca9d0fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void remove_single_plane_edges </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="class_full__plane.html">Full_plane</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>f_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classedge__3d.html">edge_3d</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>e3d_list</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>function that removes those edges which belongs only to one planner graph </p>

<p>Definition at line <a class="el" href="planar__graph__generator_8cpp_source.html#l00121">121</a> of file <a class="el" href="planar__graph__generator_8cpp_source.html">planar_graph_generator.cpp</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
